<template>
  <div>
    <el-dropdown>
          <el-button class="no-border">
            <Avatar style="width: 1.5em; height: 1.5em; " />admin
            <el-icon class="el-icon--right"></el-icon>
          </el-button>
          <template #dropdown>
            <el-dropdown-menu>
              <el-dropdown-item>修改密码</el-dropdown-item>
              <el-dropdown-item>退出</el-dropdown-item>
            </el-dropdown-menu>
          </template>
        </el-dropdown>
  </div>
</template>

<script setup>
import {Avatar} from '@element-plus/icons-vue'

</script>

<style lang="scss" scoped>
.no-border {
  border:0;
}
</style>